package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * TODO
 *
 * @Author mr.wu
 * @Data #{DATE} #{TIME}
 */
@Mapper
public interface DishMapper {

    @AutoFill(OperationType.INSERT)
    boolean add(Dish dish);

    List<DishVO> getPage(DishPageQueryDTO dto);

    int delete(List<Integer> ids);

    @AutoFill(OperationType.UPDATE)
    int update(Dish dish);

    DishVO selectById(Long id);

    List<Dish> getDish(Long categoryId);

    /**
     * PC端 根据套餐id查询包含的菜品接口
     * @param
//     * 套餐中的菜品Id
     * @return
     */

    Dish getPcDish(Long dishId);
}
